package com.ju.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "flowMsg")
public class FlowMsg {
    @Id
    @TableId(type = IdType.AUTO)
    private String id;
    private String currentTeamID;
    private String equipmentTroubleMsg;
    private String equipmentChangeMsg;

    public FlowMsg(String currentTeamID, String equipmentTroubleMsg) {
        this.currentTeamID = currentTeamID;
        this.equipmentTroubleMsg = equipmentTroubleMsg;
    }


}
